home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / BUSITION / SERVIC1.LZH / INSTALL2.BAT < prev    next >
DOS Batch File  |  1992-11-07  |  2KB  |  108 lines

  1. Echo off
  2. IF NOT EXIST INPUT.COM GOTO WRONGDR
  3. IF %1==F GOTO FLOPINS
  4. IF %1==H GOTO HARDINS1
  5. CLS
  6. GO2
  7. :FLOPINS
  8. ECHO OFF
  9. CLS
  10. IF %2==1 GOTO FLOPINS1
  11. IF %2==2 GOTO FLOPINS2
  12. CLS
  13. ECHO  This floppy installation requires that you enter either a '1' or a '2',
  14. ECHO  following your 'GO F' instruction.
  15. GOTO END
  16. :FLOPINS2
  17. CLS   
  18. ECHO  Enter disk 2, SALES-B, into drive A now.
  19. ECHO  [it should still be in Drive A]
  20. PAUSE
  21. %3
  22. B:PKUNZIP -X B:SALE-C41.ZIP PROSPECT.OVL
  23. B:PKUNZIP -X B:SALE-C41.ZIP *.FRM
  24. CLS
  25. ECHO  Enter disk 3, SALESDOC, into drive A now.
  26. PAUSE 
  27. %3     
  28. B:PKUNZIP -X B:SALE-D41.ZIP SALESDOC
  29. GOTO FLOPDOC
  30. :FLOPDOC
  31. CLS 
  32. GOTO END
  33. :FLOPINS1
  34. GOTO END
  35. :HARDINS1
  36. CLS
  37. echo  
  38. %2:
  39. CD \
  40. CD SERVICE
  41. COPY %3MAINTC50.EXE >TMP
  42. MAINTC50
  43. DEL MAINTC50.EXE
  44. COPY %3MAINTD50.EXE >TMP
  45. MAINTD50
  46. COPY GO-%2.BAT GO.BAT
  47. DEL MAINTD50.EXE
  48. COPY %3YESNO.COM >TMP
  49. COPY %3ECOH.COM >TMP
  50. CLS
  51. echo  
  52. ECOH ══════════    Tutorial for program    ══════════
  53. echo  
  54. ECHO  SERVICE.DOC is the tutorial and reference guide.
  55. echo  
  56. ECHO  Would you like to print it out now?
  57. echo  
  58. :YESNO
  59. YESNO
  60. CLS
  61. IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 GOTO YESNEXT
  62. IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 GOTO YES1
  63. GOTO YESNO
  64. :YESNEXT
  65. CLS
  66. ECHO Please make sure your printer is now turned on and set
  67. ECHO to the 'top of form'. Then press any key to continue.
  68. echo  
  69. PAUSE
  70. CLS
  71. echo  
  72. echo  
  73. ECOH ══════════ Now printing tutorial and reference guide ══════════
  74. COPY SERVICE.DOC LPT1:
  75. CLS
  76. GOTO YES1
  77. :YES1
  78. CLS
  79. echo  
  80. echo  
  81. echo  
  82. ECOH ══════════ Free memory available for program ══════════
  83. echo  
  84. ECHO The program must have 500 kb free memory. Observe the next 
  85. ECHO 'bytes are free.' message below.  If below 500k, then
  86. ECHO enter a 'CONTROL-C' now to stop and remove any memory resident
  87. ECHO programs.  Otherwise enter any other key to continue.
  88. echo  
  89. echo  
  90. MEMORY
  91. echo  
  92. echo  
  93. PAUSE
  94. CLS
  95. GO
  96. GOTO END
  97. :WRONGDR
  98. CLS
  99. echo  
  100. echo  
  101. ECHO Though nothing could be simpler than this install procedure, it does   
  102. echo require that you enter the drive name, such as 'A:' or 'B:', followed
  103. echo by the 'Enter' key.  After that, please enter 'GO2' again.
  104. echo  
  105. GOTO END
  106. :END
  107. echo  
  108.